<?php /* Smarty version Smarty-3.1.14, created on 2017-08-19 09:13:38
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\goods_recycle.html" */ ?>
<?php /*%%SmartyHeaderCode:3804599644e728e915-49217690%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f744394036415a03e51c18b1e7066262f0edf9d2' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\goods_recycle.html',
      1 => 1503103589,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3804599644e728e915-49217690',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_599644e72fde12_26694495',
  'variables' => 
  array (
    'sou' => 0,
    'goods' => 0,
    'list' => 0,
    'page' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_599644e72fde12_26694495')) {function content_599644e72fde12_26694495($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
table{text-align: center;}
th a{ color:#000000;}
#aspnetForm2{margin-left:11.5px;margin-bottom: 30px;}
.submit{
  width:70px;vertical-align: middle;padding:2px 0px;
}
.sx{width:100px;}
.goods_jy{
  disabled:;
}
.action{
  display:none;
}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>商品回收站</h3>
    <form action="goods.php" name="searchForm" method="get">
        <input type="hidden" name="act" value="recycle_list">
        <!--关键字-->
        <input type="text"  style="width:180px; height:18px;margin-left:5px; vertical-align: middle;" name="keywords" value="<?php if ($_smarty_tpl->tpl_vars['sou']->value){?><?php echo $_smarty_tpl->tpl_vars['sou']->value;?>
<?php }?>" placeholder="关键字">
        <input value=" 搜索 " id="but_sousuo" style="width:50px; height:27px; margin-top:13px;" class="button" type="submit">
        <div style="background:rgba(251,112,45,1);width:125px;height:40px;float:right;text-align:center;border-radius:5px;">
          <a href="goods.php?act=list">
            <h5 style="padding:10px;color:#fff;">商品列表</h5>
          </a>
        </div>
    </form>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="goods.php?act=batch_recycle" id="aspnetForm" name="form1">
    <table align="center;" class="table tb-type2">
      <thead>
        <tr>
          <th width="50"><input style="vertical-align: inherit;" id="quan" type="checkbox">&nbsp;<a>编号</a></th>
          <th width="25%"><a>商品名称</a></th>
          <th><a>商品展示</a></th>
          <th><a>货号</a></th>
          <th><a>价格</a></th>
          <th><a>操作</a></th>
        </tr>
      </thead>
      <tbody id="sortable">
        <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['goods']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['list']->key;
?>
            <tr>
              <td><input style="vertical-align: inherit;" name="idx[]" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['list']->value['goods_id'];?>
">&nbsp;<?php echo $_smarty_tpl->tpl_vars['list']->value['goods_id'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['goods_name'];?>
</td>
              <td><img height="50" src="../<?php echo $_smarty_tpl->tpl_vars['list']->value['goods_thumb'];?>
"/></td>
              <td><?php echo $_smarty_tpl->tpl_vars['list']->value['goods_sn'];?>
</td>
              <td>￥<?php echo $_smarty_tpl->tpl_vars['list']->value['shop_price'];?>
</td>
              <td>
                <a href="goods.php?act=recycle_edit&goods_id=<?php echo $_smarty_tpl->tpl_vars['list']->value['goods_id'];?>
">还原</a>
                <a href="goods.php?act=recycle_del&goods_id=<?php echo $_smarty_tpl->tpl_vars['list']->value['goods_id'];?>
">删除</a>
              </td>
            </tr>
        <?php } ?>
        <input type="hidden" id="ids_list" />
      </tbody>
    </table>
    <div class="page"><?php echo $_smarty_tpl->tpl_vars['page']->value;?>
</div>
    <div id="aspnetForm2">
      <select style="width:150px;" name="type" id="sx" required>
            <option value=''>请选择...</option>
            <option value='1'>还原</option>  
            <option value='2'>移除</option>
      </select>&nbsp;&nbsp;
      <input class="submit" disabled type="submit" value="确定">
    </div>
  </form>
</div>
</body>
<script>
//修改确定按钮状态
$("input[type=checkbox]").click(function(){
    if($("input[type=checkbox]").is(':checked')){
        $(".submit").attr("disabled",false);
    }else{
        $(".submit").attr("disabled",true);
    }
});
//全选全不选
var i=0;
$("#quan").click(function(){
  $(this).attr('aa',i);
  idx=$(this).attr('aa');
  if(idx%2==0){
      $("input[type=checkbox]").attr('checked',true); 
  }else{
      $("input[type=checkbox]").attr('checked',false);
      $(".submit").attr("disabled",true);
  }
  i++;
});
</script>
</html><?php }} ?>